package com.lanyam.travel.base.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lanyam.travel.base.entity.Permission;
import com.lanyam.travel.base.entity.Role;
import com.lanyam.travel.base.entity.RoleMenu;
import com.lanyam.travel.base.entity.RolePermission;
import com.lanyam.travel.base.entity.TicketType;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rosson
 * @since 2020-02-12
 */
public interface IRoleService{

	void addRole(Role role);

	List<Role> getAllRole();

	void update(Role role);

	void deleteRole(String id);

	Role getRoleById(String id);

	void saveRolePermission(String roleId, List<Integer> permissionIds);

	List<Permission> getPermissionsByRoleId(String roleId);

	void batchInsertRolePermission(List<RolePermission> list);

	void saveRoleMenu(String roleId, List<String> menuIds);

	void batchInsertRoleMenu(List<RoleMenu> list);
}
